﻿.activity {
    position: absolute;
    z-index: 20;
    padding: 1em; /*min-width: 5em;*/
    border: 1px solid #999;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    background-color: white;
    text-align: center;
    font-size: 0.9em;
    font-family: helvetica;
    -moz-opacity: 0.8;
    opacity: 0.8;
    filter: alpha(opacity=80);
    white-space: nowrap;
}

    .activity:hover, .dragHover {
        -moz-box-shadow: 2px 2px 19px #aaa;
        -o-box-shadow: 2px 2px 19px #aaa;
        -webkit-box-shadow: 2px 2px 19px #aaa;
        box-shadow: 2px 2px 19px #aaa;
    }

.event {
    background-image: url('');
    background-position: top left;
    background-repeat: no-repeat;
}

.awaiting {
    background-image: url('');
    background-position: top left;
    background-repeat: no-repeat;
}

.start {
    border-width: 2px;
    background-color: #eee;
}

._jsPlumb_connector {
    z-index: 4;
}

._jsPlumb_endpoint {
    z-index: 21;
    cursor: pointer;
}

.sourceEndpoint {
    fill: red;
}

.sourceEndpointLabel, .targetEndpointLabel {
    z-index: 21;
    cursor: pointer;
}

.active {
    border: 1px dotted green;
}

.hover {
    border: 1px dotted red;
}


/* attempt to make the editor section to take the full height */
#layout-main, #main, #content {
    height: 100%;
}


.connection-label {
    z-index: 10;
    padding: 0 0.5em;
    border: 1px solid #999;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    background-color: white;
    -moz-opacity: 0.8;
    opacity: 0.8;
    filter: alpha(opacity=80);
    filter: alpha(opacity=80);
}

#workflow-container {
    position: relative;
}

#editor-wrapper {
    display: block;
    float: left;
    width: 100%;
}

#workflow-footer {
    clear: left;
}

#activity-editor {
    display: block;
    padding: 0;
    margin: 0;
    min-height: 600px;
    overflow:auto;
    margin-right: 302px; /* width + borders */
}

/* toolbox */

#activity-toolbox {
    display: block;
    padding: 0;
    margin: 0;
    height: 600px;
    overflow-y: scroll;
    border: 1px solid #E4E5E6;
    background-color: #F3F4F5;
    float:left;

    width: 300px;
    margin-left: -302px; /* width + borders */
}

#activity-toolbox .bulk-actions {
    margin-top: 10px; 
    margin-bottom: 5px; 
    margin-left: 5px;
}

    #activity-toolbox .activity-toolbox-item {
        display: block;
        margin: 5px 5px;
        width: auto;
        border: 1px solid #EAEAEA;
        background-color: white;
    }

    #activity-toolbox .activity-toolbox-item > div {
        display: block;
        padding: 0 5px 0 10px;
        width: auto;
        height: auto;
    }

        #activity-toolbox .activity-toolbox-item > div > h2 {
            color: #333;
            font-size: 1.077em;
        }

#activity-toolbar {
    position: absolute;
    z-index: 30;
    left: -2000px;
    padding: 2px 0;
    min-width: 0;
    border: 1px solid #ccc;
    background-color: white;
}

    #activity-toolbar > div {
        width: 24px;
        height: 24px;
        margin: 0;
        padding: 0 2px;
        float: left;
        border-right: 1px solid #ccc;
    }

        #activity-toolbar > div:last-child {
            border-right: none;
        }

        #activity-toolbar > div label {
            display: inline-block;
            width: 22px;
            height: 22px;
            padding: 0;
            margin: 0;
            background-color: #eaeaea;
            background-repeat: no-repeat;
            border: 1px solid #999;
            -moz-border-radius: 2px;
            -webkit-border-radius: 2px;
            border-radius: 2px;
        }

            #activity-toolbar > div label:hover {
                border-color: #333;
            }

    /* Start button */
    #activity-toolbar #activity-toolbar-start-checkbox { /* hide the checkbox and rely on the label for two-state button */
        display: none;
    }

        #activity-toolbar #activity-toolbar-start-checkbox + label {
            background-image: url('');
            background-position: center;
        }

    /* Edit button */
    #activity-toolbar #activity-toolbar-edit > label {
        background-image: url('');
        background-position: center;
    }


    /* Delete button */
    #activity-toolbar #activity-toolbar-delete > label {
        background-image: url('');
        background-position: center;
    }

    #activity-toolbar #activity-toolbar-start-checkbox:checked + label {
        background-color: white;
    }

.toolbox-task {
    background-image: url('');
    background-repeat: no-repeat;
    background-position: 10px 10px;
}

.toolbox-task div {
    margin-left: 36px;
}

.toolbox-event {
    background-image: url('');
    background-repeat: no-repeat;
    background-position: 10px 10px;
}

.toolbox-event div {
    margin-left: 36px;
}

/* RTL */
.dir-rtl #editor-wrapper {
    float: right;
}

.dir-rtl #workflow-footer {
    clear: right;
}

.dir-rtl #activity-editor {
    margin-right: inherit;
    margin-left: 302px;
}

/* RTL toolbox */

.dir-rtl #activity-toolbox {
    float:right;

    margin-left: inherit; /* width + borders */
    margin-right: -302px; /* width + borders */
}

    .dir-rtl #activity-toolbox .activity-toolbox-item > div {
        padding: 0 10px 0 5px;
    }


.dir-rtl #activity-toolbar > div {
    float: right;
}

    .dir-rtl #activity-toolbar > div:last-child {
        border-right: inherit;
        border-left: none;
    }

.dir-rtl .toolbox-task div {
    margin-left: inherit;
    margin-right: 36px;
}

.dir-rtl .toolbox-event div {
    margin-left: inherit;
    margin-right: 36px;
}
